package main

import (
	"os"
	"text/template"
)

func main() {
	data := struct {
		Items []string
	}{
		Items: []string{"apple", "banana", "cherry"},
	}

	tmpl, err := template.New("test").Parse(`{{join .Items ", "}}`)
	if err != nil {
		panic(err)
	}

	err = tmpl.Execute(os.Stdout, data)
	if err != nil {
		panic(err)
	}
}
